import request from '@/utils/request'

export function queryCourierTrack(id) {
  return request({
    url: `/courierOrder/queryCourierTrack?id=${id}`,
    method: 'get'
  })
}
export function updateState(id) {
  return request({
    url: `/courierOrder/updateState?id=${id}`,
    method: 'get'
  })
}
export function courierOrderList(data) {
  return request({
    url: '/courierOrder/list',
    method: 'get',
    params: data
    // data: {
    //   ...data,
    //   pageNo: data.page,
    //   pageSize: data.size
    // }
  })
}
export function saveMagRecord(data) {
  return request({
    url: '/homepage/saveMagRecord',
    method: 'post',
    params: data
  })
}

export default { queryCourierTrack, updateState, courierOrderList, saveMagRecord }
